-- GENERATED SPELL FOR [Volatile Fiend] --


function spell0_25851(pUnit, Event) --@Burning Destruction,Self--
pUnit:FullCastSpellOnTarget(47287,pUnit)
pUnit:RegisterEvent('Sorts_25851', 2000, 1)
end

function spell1_25851(pUnit, Event) --@Felfire Fission,Self--
pUnit:FullCastSpellOnTarget(45779,pUnit)
pUnit:RegisterEvent('Sorts_25851', 570, 1)
end

function Sorts_25851(pUnit, Event)
local choix_sorts_25851 = math.random(0, 1)
if choix_sorts_25851 == 0 then
pUnit:RegisterEvent('spell0_25851', 1, 1)
end
if choix_sorts_25851 == 1 then
pUnit:RegisterEvent('spell1_25851', 1, 1)
end
end

function mob25851_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25851', math.random(1500, 3000), 1)
end

function mob25851_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25851_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25851_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25851, 1, 'mob25851_Action')
RegisterUnitEvent(25851, 2, 'mob25851_Leave')
RegisterUnitEvent(25851, 3, 'mob25851_Kill')
RegisterUnitEvent(25851, 4, 'mob25851_Die')
